#include <stdio.h>
int main()
{	   	 	
    int i,j,k;
    int count=0; //1
   
    for(i=0;i<=3;i++)  //3
    {	   	 	
        for(j=0;j<=3;j++)  //3
        {	   	 	
            for(k=0;k<=6;k++)  //3
            {	   	 	
                if(i+j+k==8)  //1
                {	   	 	
                    count++;
                    printf("plan:%d\t red:%d\t white:%d\t black:%d\n",count,i,j,k);
                }
            }
        }
    }
    return 0;
}	   	